using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CreateGridLine : MonoBehaviour
{
    public GameObject lines;
    public GameObject gridLinePrefab;
    private void OnEnable()
    {
        /*for (int i = -8; i <= 8; i++)
        {
            GameObject gb = Instantiate(gridLinePrefab, transform);
            gb.transform.localScale = new Vector3(16, 0.03f, 1);
            gb.transform.localPosition = new Vector3(0, i, 0);
            gb = Instantiate(gridLinePrefab, transform);
            gb.transform.localScale = new Vector3(0.03f, 16f, 1);
            gb.transform.localPosition = new Vector3(i, 0, 0);
        }*/
    }
    private void Update()
    {
        lines.SetActive(GameManager.instance.gameData.showGrid == 1);
    }
}
